package com.example.jrfwcwgl.controller;


import com.example.jrfwcwgl.entity.PaymentPlan;
import com.example.jrfwcwgl.service.IPaymentPlanService;
import com.github.pagehelper.PageInfo;
import com.org.dto.PaymentPlanDto;
import com.org.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 第三周付款计划 前端控制器
 * </p>
 *
 * @author example
 * @since 2021-11-23
 */
@RestController
@RequestMapping("/jrfwcwgl/payment-plan")
public class PaymentPlanController {

    @Autowired
    IPaymentPlanService iPaymentPlanService;


    @PostMapping("/getpaymentplanlist")
    public ResultEntity getPaymentPlanList(@RequestBody PaymentPlanDto paymentPlanDto) {

        PageInfo<PaymentPlan> info = iPaymentPlanService.getPaymentPlanList(paymentPlanDto);

        return ResultEntity.ok(info);
    }
}
